import Vue from 'vue'
/*global Vue*/
import Router from 'vue-router'
import index from './index.vue'
import ValidMail from '../native/pages/h5/valid_mail.vue'
import invite from '../native/pages/h5/share/invite_register.vue'
import UserRegister from '../native/pages/h5/share/user_register.vue'
import SureZhujici from '../native/pages/h5/share/sure_zhujici.vue'
import download from '../native/pages/h5/share/download.vue'
import word from '../native/pages/h5/share/word.vue'
import Content from '../native/pages/h5/content.vue'
import demo from '../native/pages/demo.vue'

Vue.use(Router)

module.exports = new Router({
  routes: [
    {
      path: '/',
     redirect: 'index'
    },
    {
      path: '/index.js',
      name: 'index',
      component: index
    },
    {
      path: '/h5/valid_mail.js',
      name: 'valid_mail',
      component: ValidMail
    },
    {
      path: '/h5/invite.js/:inviter',
      name: 'invite',
      component: invite
    },
    {
       path: '/h5/user_register.js',
       name: 'UserRegister',
       component: UserRegister
    },
     {
       path: '/h5/sure_zhujici.js',
       name: 'SureZhujici',
       component: SureZhujici
     },
     {
       path: '/h5/download.js',
       name: 'download',
       component: download
     },
      {
        path: '/h5/word.js',
        name: 'word',
        component: word
      },
      {
        path: '/h5/content.js',
        name: 'Content',
        component: Content
      },
      {
        path:'/demo.js',
        name:'demo',
        component:demo
      }
  ]
})
